﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using XianboSite.Models;
using NHibernate;

namespace XianboSite.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["current_user"] = HttpContext.Application["current_user"];
            ViewData["live"] = DataAccess.GetLives(12);
            ViewData["categories"] = DataAccess.GetLiveCategories();
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
